package com.cn.study002;
/**
 * 输出课程成绩
 * 计算java和sql分数之差
 * 3门课的平均分
 * @author liuwei
 *
 */
public class Test001 {

	public static void main(String[] args) {
		int w_stb=89;
		int w_java=90;
		int w_sql=60;
		int js=w_java-w_sql;
		double avg=(w_stb+w_java+w_sql)/3;
		System.out.println("STB的成绩是："+w_stb);
		System.out.println("STB的成绩是："+w_java);
		System.out.println("STB的成绩是："+w_sql);
		System.out.println("----------------------");
		System.out.println("STB\tJava\tSQL");
		System.out.println(w_stb+"\t"+w_java+"\t\t"+w_sql);
		System.out.println("----------------------");
		System.out.println("Java和SQL的成绩差："+js);
		System.out.println("3门课的平均分是："+avg);
	}

}
